#include "Timer.h"

AtomicInt64 Timer::s_numCreated_;

void Timer::restart(TimeStamp when) {
    if (repeat_) {
        expiration_ = addTime(when, interval_);
    } else {
        expiration_ = TimeStamp::invalid();
    }
}